<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/10/26
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<form action="/upload" method="post" enctype="multipart/form-data">

    姓名:<input type="text" name="name"><br>
    头像:<input id="fl" type="file" name="fl"> <br>
    <button>上传</button>

</form>


<script>
 /*   var fl = document.getElementById("fl");
    var file = fl.files[0];

    var size = file.size;
    var name = file.name;
*/


</script>



</body>
</html>
